package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.MissionItemFeedbackExample.E_FEEDBACK_CONTENT;
import static org.jsola.hr.example.MissionItemFeedbackExample.E_MISSION_ITEM_ID;
import static org.jsola.hr.example.MissionItemFeedbackExample.E_STATE;
import static org.jsola.hr.example.MissionItemFeedbackExample.M_FEEDBACK_CONTENT_MAX;
import static org.jsola.hr.example.MissionItemFeedbackExample.M_MISSION_ITEM_ID_MAX;
import static org.jsola.hr.example.MissionItemFeedbackExample.M_MISSION_ITEM_ID_NOT_NULL;
import static org.jsola.hr.example.MissionItemFeedbackExample.M_STATE_NOT_NULL;
import static org.jsola.hr.example.MissionItemFeedbackExample.N_FEEDBACK_CONTENT;
import static org.jsola.hr.example.MissionItemFeedbackExample.N_MISSION_ITEM_ID;
import static org.jsola.hr.example.MissionItemFeedbackExample.N_STATE;

/**
 * 任务调度中心子项反馈记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【任务调度中心子项反馈记录】的参数")
@Data
public class MissionItemFeedbackUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_MISSION_ITEM_ID, example = E_MISSION_ITEM_ID, required = true)
    @NotNull(message = M_MISSION_ITEM_ID_NOT_NULL)
    @Length(max = 32, message = M_MISSION_ITEM_ID_MAX)
    private String missionItemId;

    @ApiModelProperty(notes = N_STATE, example = E_STATE, required = true)
    @NotNull(message = M_STATE_NOT_NULL)
    private Integer state;

    @ApiModelProperty(notes = N_FEEDBACK_CONTENT, example = E_FEEDBACK_CONTENT)
    @Length(max = 255, message = M_FEEDBACK_CONTENT_MAX)
    private String feedbackContent;


}

